package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.PersonDeviceVerifyHistory;
import com.zhijian.medical.entity.vo.request.PersonDeviceVerifyHistorySaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.PersonDeviceVerifyHistorySearchVo;
import com.zhijian.medical.entity.vo.response.PersonDeviceVerifyHistoryVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 设备/人员比对验证实验记录 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-07-17 19:37:29
 */
public interface PersonDeviceVerifyHistoryService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    PersonDeviceVerifyHistory selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    PersonDeviceVerifyHistoryVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param personDeviceVerifyHistory
     * @return
     */
    Long insert(PersonDeviceVerifyHistory personDeviceVerifyHistory);

    /**
     * 新增
     *
     * @param personDeviceVerifyHistorySaveOrUpdateVo
     * @return
     */
    boolean save(PersonDeviceVerifyHistorySaveOrUpdateVo personDeviceVerifyHistorySaveOrUpdateVo);

    /**
     * 编辑
     *
     * @param personDeviceVerifyHistorySaveOrUpdateVo
     * @return
     */
    boolean modify(PersonDeviceVerifyHistorySaveOrUpdateVo personDeviceVerifyHistorySaveOrUpdateVo);

    /**
     * 更改
     *
     * @param personDeviceVerifyHistory
     * @return
     */
    boolean update(PersonDeviceVerifyHistory personDeviceVerifyHistory);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(PersonDeviceVerifyHistory record);

    /**
     * 总数
     *
     * @param personDeviceVerifyHistorySearchVo
     * @return
     */
    Integer count(PersonDeviceVerifyHistorySearchVo personDeviceVerifyHistorySearchVo);

    /**
     * 列表
     *
     * @param personDeviceVerifyHistorySearchVo
     * @return
     */
    List<PersonDeviceVerifyHistoryVo> selectList(PersonDeviceVerifyHistorySearchVo personDeviceVerifyHistorySearchVo);

    /**
     * 分页查询
     *
     * @param personDeviceVerifyHistorySearchVo
     * @return
     */
    Page<PersonDeviceVerifyHistoryVo> selectPage(PersonDeviceVerifyHistorySearchVo personDeviceVerifyHistorySearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<PersonDeviceVerifyHistory> entities);

    /**
     * 查询出最新数据的code
     *
     * @return
     */
    String selectMaxCode();

    /**
     * 生成下一个编码
     *
     * @return
     */
    String createNextCode();
}